/**
 * 
 */


// pass parameters to a callback function
setTimeout(function(){myFunction(parameter)},myTimeout);

// resolve the confilict betweens javascript's "this" keyword and jquery's this keyword
this.onChangeSerieGraphType = function(target){
	//pack all the optionsets
	var arr = new Array();
	// for each serie_option_set
	var self = this;
	$('.serie_optionset').each(
			function(index){
		       arr.push(self.packOptionSet(this));
	});
};